"use strict";

var _sliceInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/slice");

var _Array$from2 = require("@babel/runtime-corejs3/core-js-stable/array/from");

var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");

var _getIteratorMethod = require("@babel/runtime-corejs3/core-js/get-iterator-method");

var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");

var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");

var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");

var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");

var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));

var _set = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set"));

var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));

var _from = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/from"));

var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));

var _trim = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/trim"));

var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/toConsumableArray"));

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));

var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));

function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e3) { throw _e3; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e4) { didErr = true; err = _e4; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { var _context5; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context5 = Object.prototype.toString.call(o)).call(_context5, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from2(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

!function (t, r) {
  "object" == (typeof exports === "undefined" ? "undefined" : (0, _typeof2.default)(exports)) && "object" == (typeof module === "undefined" ? "undefined" : (0, _typeof2.default)(module)) ? module.exports = r() : "function" == typeof define && define.amd ? define([], r) : "object" == (typeof exports === "undefined" ? "undefined" : (0, _typeof2.default)(exports)) ? exports.zto = r() : t.zto = r();
}(void 0, function () {
  return t = {
    825: function _(t, r, e) {
      var s = e(573),
          o = e(94),
          n = e(499),
          i = e(471),
          a = e(962),
          $ = e(242),
          u = e(484),
          p = e(518),
          f = e(518),
          g = e(906),
          l = e(258),
          c = e(258),
          d = e(258),
          A = e(637),
          x = e(258),
          h = e(562),
          w = e(26),
          M = e(370),
          y = e(523),
          E = e(353),
          F = e(930);
      t.exports = {
        isAlphaAndUnderline: s,
        isEmail: o,
        isBillCode: n,
        isIdCard: i,
        isLicensePlateNumber: a,
        isMobile: $,
        isNils: u,
        isPhone: p,
        isTel: f,
        parseUrl: g,
        treeFindNode: l,
        treeFindParentNode: c,
        treeFindPaths: d,
        treeFromArray: A,
        treeToArray: x,
        isBankCard: w,
        isCarSignCode: h,
        isDrivingLicenseCode: M,
        isIpAddress: E,
        isLegalURL: y,
        isBasicSymbol: F
      };
    },
    573: function _(t) {
      t.exports = function (t) {
        var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref$isDetail = _ref.isDetail,
            r = _ref$isDetail === void 0 ? !1 : _ref$isDetail;

        var e = {
          status: !1,
          errorMsg: ""
        };
        "string" != typeof t && (e.errorMsg = "类型错误");
        return e.reg = new RegExp("^[a-z-A-Z_]+$"), e.reg.test(t) ? e.status = !0 : e.errorMsg = "格式错误!", r ? e : e.status;
      };
    },
    26: function _(t) {
      t.exports = function (t) {
        var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref2$isDetail = _ref2.isDetail,
            r = _ref2$isDetail === void 0 ? !1 : _ref2$isDetail;

        var e = {
          status: !1,
          errorMsg: ""
        };
        if ("string" != typeof t) throw new Error("类型错误");
        return e.reg = new RegExp(["^(62|18|19|20|21|22|23|24|25|26|27|30|31|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|58|60|65|84|87|88|89|94|95|96|97|98|99)\\d{14,17}$", "^3[47]\\d{13}$", "^4\\d{12}(\\d{3})?$", "^5[1-5]\\d{14}$", "^6(?:011|5\\d{2})\\d{12}$", "^(?:2131|1800|35\\d{3})\\d{11}$", "^65[2-9]d{12}|650[0-9]d{11}|6511d{12}|3[4-9]d{15}$"].join("|")), e.reg && !e.reg.test(t) ? e.errorMsg = "格式错误!" : e.status = !0, r ? e : e.status;
      };
    },
    930: function _(t) {
      t.exports = function (t) {
        var _context2, _context3;

        var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref3$isDetail = _ref3.isDetail,
            r = _ref3$isDetail === void 0 ? !1 : _ref3$isDetail,
            _ref3$combination = _ref3.combination,
            e = _ref3$combination === void 0 ? [] : _ref3$combination,
            _ref3$includes = (0, _includes.default)(_ref3),
            s = _ref3$includes === void 0 ? "" : _ref3$includes,
            _ref3$excludes = _ref3.excludes,
            o = _ref3$excludes === void 0 ? "" : _ref3$excludes;

        var n = {
          status: !1,
          errorMsg: ""
        };
        if ("number" == typeof t && (t = "".concat(t)), "string" != typeof t) throw new Error("str类型错误");
        if (!Array.isArray(e)) throw new Error("combination类型错误");
        if ("string" != typeof s) throw new Error("includes类型错误");
        if ("string" != typeof o) throw new Error("excludes类型错误");
        var i = new _set.default(s),
            a = new _set.default(o);
        var $ = !1;

        var _iterator = _createForOfIteratorHelper(i),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var _t2 = _step.value;
            a.has(_t2) && ($ = !0);
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        if ($) throw new Error("includes和excludes中不能有相同的字符");
        var u = {
          cn: /[\u4e00-\u9fa5]/,
          en: /[a-zA-Z]/,
          num: /[0-9]/,
          symbol: /[^\u4e00-\u9fa5a-zA-Z0-9]/
        };
        var p = "";

        if (p = 0 === e.length ? [/[\s\S]/.source] : (0, _map.default)(e).call(e, function (t) {
          if (u.hasOwnProperty(t)) return u[t].source;
          throw new Error("\u4E0D\u652F\u6301\u7684combination: ".concat(t));
        }), s) {
          var _context;

          var _t = (0, _map.default)(_context = (0, _from.default)(s)).call(_context, function (t) {
            return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
          }).join("");

          _t && p.push("[".concat(_t, "]"));
        }

        var f = "";
        o && (f = (0, _map.default)(_context2 = o.split("")).call(_context2, function (t) {
          return "(?!".concat(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ")");
        }).join(""));
        var g = (0, _concat.default)(_context3 = "^(".concat(f, "(")).call(_context3, p.join("|"), "))+$");
        return n.reg = new RegExp(g), n.reg && !n.reg.test(t) ? n.errorMsg = "格式错误!" : n.status = !0, r ? n : n.status;
      };
    },
    499: function _(t) {
      t.exports = function (t) {
        var _context4;

        var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref4$isDetail = _ref4.isDetail,
            r = _ref4$isDetail === void 0 ? !1 : _ref4$isDetail;

        var e = {
          status: !1,
          errorMsg: ""
        };
        return e.reg = new RegExp("^((768|765|778|779|719|518|880|660|805|718|728|738|761|762|763|701|757|689|738|528)[0-9]{9})$|^2013[0-9]{8}$|^((8010|8021)[0-9]{6})$|^((a|b|h)[0-9]{13})$|^((5)[0-9]{9})$|^((80|88|89|90|91|92|93|94|95|96|97|99|200|21)[0-9]{8})$|^(90|91|94|53)[0-9]{10}$|^(120)[0-9]{9}$|^(23)[0-9]{8}$|^(780)[0-9]{9}$|^(881)[0-9]{9}$|^(6666666666)[0-9]{2}$|^54[0-9]{10}$|^(24)[0-9]{8}$|^(960)[0-9]{9}$|^665[0-9]{9}$|^(wx|hf)[0-9]{10}$|^(25)[0-9]{8}$|^(26)[0-9]{8}$|^(63|64)[0-9]{10}$|^(72)[0-9]{10}$|^(220|221|223|224|225|226|227|228|229)[0-9]{7}$|^3[0-9]{9}$|^731[0-9]{11}$|^73220[0-9]{9}$|^73200[0-9]{9}$|^7518[0-9]{8}$|^4[0-9]{9}$|^73210[0-9]{9}$|^771[0-9]{11}$|^733000[0-9]{8}$|^73211[0-9]{9}$|^5[0-9]{9}$|^(A)[0-9]{9}$|^C[0-9]{9}$|^D[0-9]{9}$|^781[0-9]{11}$|^(7)[0-9]{9}$|^73222[0-9]{9}$|^734[0-9]{11}$|^75210[0-9]{9}$|^73223[0-9]{9}$|^73224[0-9]{9}$|^8[0-9]{7}$|^100[0-9]{9}$|^118[0-9]{9}$|^128[0-9]{9}$|^688[0-9]{9}$|^68[0-9]{10}$|^882[0-9]{9}$|^9[0-9]{7}$|^010[0-9]{9}$|^628[0-9]{9}$|^E[0-9]{9}$|^F[0-9]{9}$|^G[0-9]{9}$|^H[0-9]{9}$|^7777[0-9]{10}$|^758[0-9]{11}$|^759[0-9]{11}$|^760[0-9]{11}$|^741[0-9]{11}$|^73226[0-9]{9}$|^777600[0-9]{8}$|^77761[0-9]{9}$|^73227[0-9]{9}$|^H[0-9]{9}$|^J[0-9]{9}$|^K[0-9]{9}$|^L[0-9]{9}$|^M[0-9]{9}$|^N[0-9]{9}$|^73225[0-9]{9}$|^31111[0-9]{9}$|^754[0-9]{11}$|^O[0-9]{9}$|^P[0-9]{9}$|^Q[0-9]{9}$|^R[0-9]{9}$|^S[0-9]{9}$|^T[0-9]{9}$|^755[0-9]{11}$|^73228[0-9]{9}$|^73229[0-9]{9}$|^782[0-9]{11}$|^756[0-9]{11}$|^U[0-9]{9}$|^V[0-9]{9}$|^W[0-9]{9}$|^X[0-9]{9}$|^Y[0-9]{9}$|^Z[0-9]{9}$|^[A-Z]{2}[0-9]{8}$|^766[0-9]{11}$"), t = (0, _trim.default)(_context4 = String(t)).call(_context4), e.reg.test(t) ? e.status = !0 : e.errorMsg = "运单号非法", r ? e : e.status;
      };
    },
    562: function _(t) {
      t.exports = function (t) {
        var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref5$isDetail = _ref5.isDetail,
            r = _ref5$isDetail === void 0 ? !1 : _ref5$isDetail;

        var e = {
          status: !1,
          errorMsg: ""
        };
        if (e.reg = new RegExp("^[0-9a-zA-Z]+(,?[0-9a-zA-Z])*$"), "string" != typeof t) throw new Error("类型错误");
        return e.reg.test(t) ? e.status = !0 : e.errorMsg = "格式错误!", r ? e : e.status;
      };
    },
    370: function _(t) {
      t.exports = function (t) {
        var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref6$isDetail = _ref6.isDetail,
            r = _ref6$isDetail === void 0 ? !1 : _ref6$isDetail;

        var e = {
          status: !1,
          errorMsg: ""
        };
        if (e.reg = new RegExp("(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)"), "string" != typeof t) throw new Error("类型错误");
        return e.reg.test(t) ? e.status = !0 : e.errorMsg = "格式错误!", r ? e : e.status;
      };
    },
    94: function _(t) {
      t.exports = function (t) {
        var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref7$isDetail = _ref7.isDetail,
            r = _ref7$isDetail === void 0 ? !1 : _ref7$isDetail;

        var e = {
          status: !1,
          errorMsg: ""
        };
        return e.reg = new RegExp('^(([^<>()[\\]\\\\.,;:\\s@"]+(\\.[^<>()[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'), e.reg.test(t) ? e.status = !0 : e.errorMsg = "格式错误!", r ? e : e.status;
      };
    },
    471: function _(t) {
      t.exports = function (t) {
        var _ref8 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref8$isDetail = _ref8.isDetail,
            r = _ref8$isDetail === void 0 ? !1 : _ref8$isDetail,
            _ref8$isStrict = _ref8.isStrict,
            e = _ref8$isStrict === void 0 ? !1 : _ref8$isStrict;

        var s = {
          status: !1,
          errorMsg: ""
        };
        "number" == typeof t && (t = "".concat(t));
        var o = !1,
            n = "";
        if (t) {
          if (18 === t.length) {
            if (/(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(t)) {
              if (e) {
                if ({
                  11: "北京",
                  12: "天津",
                  13: "河北",
                  14: "山西",
                  15: "内蒙古",
                  21: "辽宁",
                  22: "吉林",
                  23: "黑龙江 ",
                  31: "上海",
                  32: "江苏",
                  33: "浙江",
                  34: "安徽",
                  35: "福建",
                  36: "江西",
                  37: "山东",
                  41: "河南",
                  42: "湖北 ",
                  43: "湖南",
                  44: "广东",
                  45: "广西",
                  46: "海南",
                  50: "重庆",
                  51: "四川",
                  52: "贵州",
                  53: "云南",
                  54: "西藏 ",
                  61: "陕西",
                  62: "甘肃",
                  63: "青海",
                  64: "宁夏",
                  65: "新疆",
                  71: "台湾",
                  81: "香港",
                  82: "澳门",
                  91: "国外 "
                }[t.substr(0, 2)]) {
                  var _r = t.split(""),
                      _e = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2],
                      _s = [1, 0, "X", 9, 8, 7, 6, 5, 4, 3, 2, "x"];

                  var i = 0,
                      a = 0,
                      $ = 0;

                  for (var _t3 = 0; _t3 < 17; _t3++) {
                    a = _r[_t3], $ = _e[_t3], i += a * $;
                  }

                  "".concat(_s[i % 11]) != "".concat(_r[17]) ? n = "证件号码校验位错误" : o = !0;
                } else n = "地址编码错误";
              } else o = !0;
            } else n = "证件号码格式错误";
          } else n = "证件号码长度不为18位";
        } else n = "证件号码不能为空";
        return s.errorMsg = n, s.status = o, r ? s : s.status;
      };
    },
    353: function _(t) {
      t.exports = function (t) {
        var _ref9 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref9$isDetail = _ref9.isDetail,
            r = _ref9$isDetail === void 0 ? !1 : _ref9$isDetail,
            _ref9$type = _ref9.type,
            e = _ref9$type === void 0 ? "" : _ref9$type;

        var s = {
          status: !1,
          errorMsg: ""
        };
        if ("string" != typeof t) throw new Error("类型错误");
        var o = ["^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"],
            n = ["^([0-9a-fA-F]{1,4}:){7}([0-9a-fA-F]{1,4}|:)$|^::(?:[0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){1,6}:$|^([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}$|^([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}$|^([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}$|^([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}$|^[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})$|^:((:[0-9a-fA-F]{1,4}){1,7}|:)$|^fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}$|^::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$|^([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$"];
        var i = [];
        return i = "ipv4" === e.toLowerCase() ? o : "ipv6" === e.toLowerCase() ? n : (0, _concat.default)(o).call(o, n), s.reg = new RegExp(i.join("|")), s.reg.test(t) ? s.status = !0 : s.errorMsg = "格式错误!", r ? s : s.status;
      };
    },
    523: function _(t) {
      t.exports = function (t) {
        var _ref10 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref10$isDetail = _ref10.isDetail,
            r = _ref10$isDetail === void 0 ? !1 : _ref10$isDetail;

        var e = {
          status: !1,
          errorMsg: ""
        };
        if ("string" != typeof t) throw new Error("类型错误");
        return e.reg = new RegExp("^((https?|ftp):)?(//)?(([^:@]+:[^:@]+@)?(([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3})|(\\[[0-9a-f:]{3,40}\\])|(localhost))(\\:\\d+)?(\\/($|[a-zA-Z0-9\\u4e00-\\u9fa5.,?'\\\\+&%$#=~_-]+))*$", "i"), e.reg.test(t) ? e.status = !0 : e.errorMsg = "格式错误!", r ? e : e.status;
      };
    },
    962: function _(t) {
      t.exports = function (t) {
        var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref11$isDetail = _ref11.isDetail,
            r = _ref11$isDetail === void 0 ? !1 : _ref11$isDetail,
            _ref11$type = _ref11.type,
            e = _ref11$type === void 0 ? "" : _ref11$type;

        var s = {
          status: !1,
          errorMsg: ""
        };
        "number" == typeof t && (t = "".concat(t));
        var o = ["^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼川贵云渝藏陕甘青宁新使][A-Z]([0-9a-zA-Z]{4}[挂警学领港澳0-9a-zA-Z]|[DF][0-9a-zA-Z]{5}|[0-9a-zA-Z]{5}[DF])$", "^WJ[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼川贵云渝藏陕甘青宁新]?[0-9a-zA-Z]{5}$"];
        return "head" === e ? o = ["^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼川贵云渝藏陕甘青宁新使][A-Z]([0-9a-zA-Z]{4}[警学领港澳0-9a-zA-Z]|[DF][0-9a-zA-Z]{5}|[0-9a-zA-Z]{5}[DF])$", "^WJ[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼川贵云渝藏陕甘青宁新]?[0-9a-zA-Z]{5}$"] : "tail" === e && (o = ["^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼川贵云渝藏陕甘青宁新][A-Z][0-9a-zA-Z]{4}[挂]{1}$"]), s.reg = new RegExp(o.join("|")), "string" != typeof t ? (s.errorMsg = "类型错误", r ? s : s.status) : (s.reg.test(t) ? s.status = !0 : s.errorMsg = "格式错误!", r ? s : s.status);
      };
    },
    242: function _(t) {
      t.exports = function (t) {
        var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref12$isDetail = _ref12.isDetail,
            r = _ref12$isDetail === void 0 ? !1 : _ref12$isDetail,
            _ref12$isStrict = _ref12.isStrict,
            e = _ref12$isStrict === void 0 ? !1 : _ref12$isStrict,
            _ref12$isVirtual = _ref12.isVirtual,
            s = _ref12$isVirtual === void 0 ? !0 : _ref12$isVirtual;

        var o = {
          status: !1,
          errorMsg: ""
        };
        "number" == typeof t && (t = "".concat(t));
        var n = "";
        return !e && s && (n = "^1[3-9]\\d{9}$"), e || s || (n = "^(1[3-5]\\d|1[8-9]\\d|16[^257]|17[^01])\\d{8}$"), e && s && (n = "^(13\\d|14[^1-4|8]|15[^4]|16[2|5-7]|17[^4|9]|18\\d|19[^0|2|4])\\d{8}$"), e && !s && (n = "^(13\\d|14[^1-4|8]|15[^4]|166|17[^0|1|4|9]|18\\d|19[^0|2|4])\\d{8}$"), o.reg = new RegExp(n), n && !o.reg.test(t) ? o.errorMsg = "格式错误!" : o.status = !0, r ? o : o.status;
      };
    },
    484: function _(t) {
      t.exports = function (t) {
        var _ref13 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref13$isDetail = _ref13.isDetail,
            r = _ref13$isDetail === void 0 ? !1 : _ref13$isDetail;

        var e = {
          status: !0,
          errorMsg: ""
        };
        return "string" != typeof t || t.length ? void 0 === t ? e.errorMsg = "值为undefined" : null === t ? e.errorMsg = "值为null" : e.status = !1 : e.errorMsg = "值为空值", r ? e : e.status;
      };
    },
    518: function _(t, r, e) {
      var s = e(242),
          o = e(794);

      t.exports = function (t) {
        var _ref14 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref14$isDetail = _ref14.isDetail,
            r = _ref14$isDetail === void 0 ? !1 : _ref14$isDetail;

        if (r) {
          var _e2 = o(t, {
            isDetail: r
          }),
              n = s(t, {
            isDetail: r
          });

          return _e2.status ? _e2 : n;
        }

        return o(t, {
          isDetail: r
        }) || s(t, {
          isDetail: r
        });
      };
    },
    794: function _(t) {
      t.exports = function (t) {
        var _ref15 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref15$isDetail = _ref15.isDetail,
            r = _ref15$isDetail === void 0 ? !1 : _ref15$isDetail;

        var e = {
          status: !1,
          errorMsg: ""
        };
        return e.reg = new RegExp("^(0\\d{2,3}-)?\\d{7,8}(-\\d{1,6})?$"), e.reg.test(t) ? e.status = !0 : e.errorMsg = "格式错误!", r ? e : e.status;
      };
    },
    906: function _(t) {
      t.exports = function (t) {
        var _ref16 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref16$isDetail = _ref16.isDetail,
            r = _ref16$isDetail === void 0 ? !1 : _ref16$isDetail;

        var e = {
          status: !1,
          errorMsg: "",
          result: null
        };
        if (t) {
          if ((0, _includes.default)(t).call(t, "?")) {
            var _r2 = t.split("?")[1].split("&"),
                s = {};

            _r2.forEach(function (t) {
              var r = t.split("=")[0],
                  e = t.split("=")[1];
              s[r] = e;
            }), _r2.length && (e.status = !0, e.result = s);
          } else e.errorMsg = "没有需要解析的参数部分";
        } else e.errorMsg = "没有需要解析的url";
        return r ? e : e.result;
      };
    },
    637: function _(t) {
      t.exports = function t(r) {
        var _ref17 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref17$props = _ref17.props;

        _ref17$props = _ref17$props === void 0 ? {} : _ref17$props;
        var _ref17$props$prop = _ref17$props.prop,
            e = _ref17$props$prop === void 0 ? "id" : _ref17$props$prop,
            _ref17$props$parentPr = _ref17$props.parentProp,
            s = _ref17$props$parentPr === void 0 ? "parentId" : _ref17$props$parentPr,
            o = _ref17$props.parentValue,
            _ref17$props$children = _ref17$props.childrenProp,
            n = _ref17$props$children === void 0 ? "children" : _ref17$props$children,
            i = _ref17.mapping;
        var a = [];
        return r.forEach(function ($) {
          if ($[s] === o) {
            var _o = t(r, {
              props: {
                prop: e,
                parentProp: s,
                parentValue: $[e],
                childrenProp: n
              },
              mapping: i
            });

            _o.length && ($[n] = _o), a.push("function" == typeof i ? i($) : $);
          }
        }), a;
      };
    },
    258: function _(t) {
      t.exports = function t(r) {
        var _ref18 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
            _ref18$props = _ref18.props;

        _ref18$props = _ref18$props === void 0 ? {} : _ref18$props;
        var _ref18$props$prop = _ref18$props.prop,
            e = _ref18$props$prop === void 0 ? "id" : _ref18$props$prop,
            _ref18$props$parentPr = _ref18$props.parentProp,
            s = _ref18$props$parentPr === void 0 ? "parentId" : _ref18$props$parentPr,
            _ref18$props$children = _ref18$props.childrenProp,
            o = _ref18$props$children === void 0 ? "children" : _ref18$props$children,
            n = _ref18.mapping;
        var i = [];
        return r.forEach(function (r) {
          var a = _objectSpread({}, r);

          i.push("function" == typeof n ? n(a) : a), a[o] && (i.push.apply(i, (0, _toConsumableArray2.default)(t(a[o], {
            props: {
              prop: e,
              parentProp: s,
              childrenProp: o
            },
            mapping: n
          }))), delete a[o]);
        }), i;
      };
    }
  }, r = {}, function e(s) {
    var o = r[s];
    if (void 0 !== o) return o.exports;
    var n = r[s] = {
      exports: {}
    };
    return t[s](n, n.exports, e), n.exports;
  }(825);
  var t, r;
});